:root {
  --primary-color: #32c5ff;
  --primary-light: #e6f7ff;
  --primary-dark: #1890ff;
  --text-primary: #333333;
  --text-secondary: #666666;
  --text-light: #999999;
  --bg-color: #f5f7fa;
  --card-bg: #ffffff;
  --border-radius-base: 8px;
  --border-radius-card: 12px;
  --border-color: #e8e8e8;
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
  --shadow-base: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
  --transition-duration: 0.3s;
  --transition-timing: cubic-bezier(0.4, 0, 0.2, 1);
  --hover-scale: 1.02;
  --active-scale: 0.98;
  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  background-color: var(--bg-color);
  color: var(--text-primary);
  line-height: 1.5;
  padding: 0 20px;
  padding-top: 60px;
  margin: 0;
}

.flex {
  display: flex;
}

.flex-col { @extend .flex; flex-direction: column; }
.flex-row { @extend .flex; flex-direction: row; }

.justify-start { @extend .flex; justify-content: flex-start; }
.justify-center { @extend .flex; justify-content: center; }
.justify-end { @extend .flex; justify-content: flex-end; }
.justify-between { @extend .flex; justify-content: space-between; }
.justify-around { @extend .flex; justify-content: space-around; }
.justify-evenly { @extend .flex; justify-content: space-evenly; }

.align-start { @extend .flex; align-items: flex-start; }
.align-center { @extend .flex; align-items: center; }
.align-end { @extend .flex; align-items: flex-end; }

.fade-enter-active,
.fade-leave-active {
  transition: opacity var(--transition-duration) var(--transition-timing);
}

.fade-enter-from,
.fade-leave-to {
  opacity: 0;
}

.slide-up-enter-active,
.slide-up-leave-active {
  transition: all var(--transition-duration) var(--transition-timing);
}

.slide-up-enter-from,
.slide-up-leave-to {
  transform: translateY(20px);
  opacity: 0;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.text-ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card {
  background: var(--card-bg);
  border-radius: var(--border-radius-card);
  box-shadow: var(--shadow-base);
  transition: all var(--transition-duration) var(--transition-timing);
  
  &:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
  }
}

.btn {
  padding: var(--spacing-sm) var(--spacing-lg);
  border-radius: var(--border-radius-base);
  border: none;
  cursor: pointer;
  transition: all var(--transition-duration) var(--transition-timing);
  font-weight: 500;
  
  &:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-base);
  }
  
  &:active {
    transform: scale(var(--active-scale));
  }
  
  &-primary {
    background: var(--primary-color);
    color: white;
    
    &:hover {
      background: var(--primary-dark);
    }
  }
  
  &-outline {
    background: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    
    &:hover {
      background: var(--primary-light);
    }
  }
}

.input {
  padding: var(--spacing-sm) var(--spacing-md);
  border: 1px solid var(--border-color);
  border-radius: var(--border-radius-base);
  transition: all var(--transition-duration) var(--transition-timing);
  
  &:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px var(--primary-light);
    outline: none;
  }
}

@media screen and (max-width: 768px) {
  :root {
    --spacing-lg: 20px;
    --spacing-xl: 24px;
  }
  
  .card {
    border-radius: var(--border-radius-base);
  }
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-color);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb {
  background: var(--text-light);
  border-radius: 4px;
  
  &:hover {
    background: var(--text-secondary);
  }
} 